package com.astrob.activitys;

/**
 * Created by colin on 2018/4/10.
 */

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.astrob.naviframe.Start;

public class BootBroadcastReceiver extends BroadcastReceiver {
    static final String ACTION = "android.intent.action.BOOT_COMPLETED";

    @Override
    public void onReceive(Context context, Intent intent) {
//        String msg = "abcde";
//        Start.getInstance().log(msg);
//
//        if (intent.getAction().equals(ACTION)) {
//
//            msg = "123456";
//            Start.getInstance().log(msg);
//
//            Intent mainActivityIntent = new Intent(context, WelcomeActivity.class);  // 要启动的Activity
//            mainActivityIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
//            context.startActivity(mainActivityIntent);
//        }
    }

}
